<template>
  <el-card class="box-card" v-bind="otherOptions">
    <template #header>
      <div class="card-header">
        <span>{{ title }}</span>
      </div>
    </template>
    <slot></slot>
  </el-card>
</template>

<script setup lang="ts" >
defineProps({
  title: {
    type: String,
    default: () => ''
  },
  otherOptions: {
    default: () => { }
  }
})
</script>
<style>
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
